/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/01
*/
#ifndef __EDUI_LUALABEL_H__
#define __EDUI_LUALABEL_H__

#include "../../controls/Label.h"
#include "LuaControl.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaLabel : public LuaControl
{
public:
    LuaLabel(Label* label);
    virtual ~LuaLabel();
    static void* GetInterface(void* data);
    virtual void Release();
    static void Register(LuaState *L);
public:
    int GetFont(LuaState *L);
    int SetFont(LuaState *L);
    void SetText(const char* text);
    const char* GetText();
    void SetTranslateText(bool bTranslate);
    bool IsTranslateText();
    const char* GetTranslateText();
    int GetTextAlign(LuaState *L);
    void SetTextAlign(const char* align);
    int GetTextPadding(LuaState *L);
    bool SetTextPadding(int l, int t, int r, int b);
    void SetAutoWidth(bool bauto);
    bool IsAutoWidth();
    void SetAutoHeight(bool bauto);
    bool IsAutoHeight();
    int GetFixedSize(LuaState *L);
    int GetFixedRect(LuaState *L);
};

EDUI_NAMESPACE_END

#endif
#endif